<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CrearTabla extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
     /*Schema::create("potreros", function($table)
		{
			$table->increments('id');
			$table->string('cod_potrero',45);
			$table->text('descripcion');
			$table->boolean('activo');
			$table->timestamps();
		});

		Schema::create("ganado_potreros", function($table)
		{
			$table->increments('id');
			$table->integer('id_potrero');
			$table->integer('id_ganado');
			$table->string('fecha',45);
			$table->boolean('activo');
			$table->timestamps();
		});*/

		Schema::create("cliente_proveedores", function($table)
		{
			$table->increments('id');
			$table->tinyInteger('cliente');
			$table->string('nombre',45);
			$table->string('ruc',45);
			$table->string('direccion',45);
			$table->string('telefono',45);
			$table->string('celular',45);
			$table->string('email',45);
			$table->boolean('activo');
			$table->tinyInteger('proveedor');
			$table->timestamps();
		});




	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
			Schema::drop('potreros');
			Schema::drop('ganado_potreros');
			Schema::drop('cliente_proveedores');





		//
	}

}
